package com.keepsport.keepsportapi.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.keepsport.keepsportapi.entity.Palntable;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface PalnDao extends BaseMapper<Palntable> {
    //按照类型查询
    @Select("select * from t_paln_tables pt where pt.type=#{type}")
    List<Palntable> selectByType(Integer type);
    @Select("select * from t_paln_tables pt where pt.id=#{id}")
    List<Palntable> selectById1(Integer id);
}
